package com.kaiwukj.android.ufamily.mvp.http.entity.helper;

import androidx.annotation.IntDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

public class FileBean {

    public static final int IMG = 1;
    public static final int AUDIO = 2;
    public static final int VIDEO = 3;

    @IntDef({
            IMG, AUDIO, VIDEO
    })
    @Target(ElementType.PARAMETER)
    @Retention(RetentionPolicy.SOURCE)
    public @interface Type {
    }

    private int fileType;
    private String fileName;
    private String filePath;

    public FileBean() {
    }

    public FileBean(String fileName, String filePath) {
        this.fileName = fileName;
        this.filePath = filePath;
    }

    public FileBean(@Type int fileType, String fileName, String filePath) {
        this.fileType = fileType;
        this.fileName = fileName;
        this.filePath = filePath;
    }

    public int getFileType() {
        return fileType;
    }

    public void setFileType(@Type int fileType) {
        this.fileType = fileType;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}
